package com.yusys.pattern.regular.LODemeter.second;

/**
 * 安装类
 * 问题：安装类中 wizard 把太多方法暴露给安装类，解决，把install方法移到wizard类中
 */
public class InstallSoftware {
    public void installWizard(Wizard wizard){
        int first = wizard.first();
        //根据first返回的结果，看是否需要执行second
        if(first>50){
            int second = wizard.second();
            if(second>50){
                int third = wizard.third();
                if(third >50){
                    wizard.first();
                }else {
                    System.out.println("第三个判断结束");
                }
            }
        }
    }
}
